package com.cy.store.util;

import org.springframework.util.DigestUtils;

//密码MD5加密
public class Md5Method {
    public String getMD5Password(String password,String salt){
        for (int i = 0; i < 3; i++) {
            password = DigestUtils.md5DigestAsHex((salt + password + salt).getBytes()).toUpperCase();
        }
        return password;
    }
}
